<%= footer_menu.render %>

<nav role="navigation" aria-label="<%= t("layouts.decidim.user_menu.profile") %>">
  <h2 class="h4 mb-4"><%= t("layouts.decidim.user_menu.profile") %></h2>
  <ul class="space-y-4 break-inside-avoid">
    <% if current_user %>
      <li class="font-semibold underline"><%= link_to t("layouts.decidim.user_menu.configuration"), decidim.account_path %></li>
      <li class="font-semibold underline"><%= link_to t("layouts.decidim.user_menu.public_profile"), decidim.profile_path(current_user.nickname) %></li>
      <li class="font-semibold underline"><%= link_to t("layouts.decidim.user_menu.notifications"), decidim.notifications_path %></li>
      <li class="font-semibold underline"><%= link_to t("layouts.decidim.user_menu.conversations"), decidim.conversations_path %></li>
    <% else %>
      <% if current_organization.sign_up_enabled? %>
        <li class="font-semibold underline"><%= link_to t("layouts.decidim.footer.sign_up"), decidim.new_user_registration_path %></li>
      <% end %>
      <li class="font-semibold underline"><%= link_to t("layouts.decidim.footer.log_in"), decidim.new_user_session_path %></li>
    <% end %>
  </ul>
</nav>

<nav role="navigation" aria-label="<%= t("layouts.decidim.footer.resources") %>">
  <h2 class="h4 mb-4"><%= t("layouts.decidim.footer.resources") %></h2>
  <ul class="space-y-4 break-inside-avoid">
    <li class="font-semibold underline"><%= link_to t("decidim.profiles.show.activity"), decidim.last_activities_path %></li>
    <% if Decidim.module_installed?(:meetings) %>
      <li class="font-semibold underline"><%= link_to t("decidim.pages.home.extended.meetings"), Decidim::Meetings::DirectoryEngine.routes.url_helpers.root_path %></li>
    <% end %>
    <li class="font-semibold underline"><%= link_to t("layouts.decidim.footer.open_data"), decidim.open_data_path %></li>
  </ul>
</nav>

<%= cell("decidim/footer_topics", nil) %>
